package com.renli.model.domain;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Punishment implements Serializable {
    private Long id;
    @NotEmpty(message = "员工工号不可为空")
    private Long staffId;

    //奖赏金额
    private Double reward;


    //员工姓名
    private String name;

    //罚款金额
    private Double penalty;

    //奖惩原因
    private String cause;
    @NotEmpty(message = "时间不可为空")
    private LocalDateTime processing_time;
    @NotEmpty(message = "处理人不可为空")
    private String accountProcessor;

    private String description;

}
